<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>我的网库-图片信息</title>
</head>
<body>

<table border="1">

    <tr>
        <th>序号</th>
        <th>姓名</th>
        <th>时间</th>
        <th>图片名称</th>
        <th>内容</th>
        <th>操作</th>
    </tr>

    {% for i in get_data %}
    <tr>
        <td>{{ forloop.counter }}</td>
        <td>{{ i.username }}</td>
        <td>{{ i.time }}</td>
        <td>{{ i.image_name }}</td>
        <td>
            <img src="../static/imgs/{{ i.image_name }}" alt="a">
        </td>
        <td>
            <form id="form" name="form" method="post" action="/img_delete/">
                {% csrf_token %}
                <button  type="submit" name="delete_id" id="delete_button" value="{{ i.id }}" onclick="JavaScript:return confirm('确定删除【{{ i.image_name }}】吗？')">删除</button>
            </form>
        </td>
    </tr>
{% endfor %}
</table>



<button ><a href="{{ url }}/img_upload">继续上传图片</a></button>



</body>
</html>